• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

Search results

  1. Lord Shyguy

    Style Switcher Problems

    Hmm, that doesn't do anything either...
  2. Lord Shyguy

    Style Switcher Problems

    Thanks, Kratos. Now, since all the current possiblities are eliminated, I'm stuck wondering why the heck it won't work.
  3. Lord Shyguy

    Style Switcher Problems

    That might be it. Would putting everything in one file help at all? By the way, I can't actually open styleswitcher.js. My coputer just gives me some 'Error, cannot read' kind of message. I have Windows XP Home Edition if that helps at all.
  4. Lord Shyguy

    Style Switcher Problems

    Okay, I think the problem is that my website isn't actually up yet, and my computer isn't running the Javascript file. Or my computer is being a piece of crap. Either way.
  5. Lord Shyguy

    Style Switcher Problems

    That's what I'm doing, except without the a in a href, because Butterfree said that that would be directly linking it to the css document.
  6. Lord Shyguy

    Style Switcher Problems

    But the text that is supposed to change the style doesn't appear as a link. It's just plain text.
  7. Lord Shyguy

    Style Switcher Problems

    Where would I put the title attributes though?
  8. Lord Shyguy

    Style Switcher Problems

    Here is the styleswitcher.js file: function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") ==...
  9. Lord Shyguy

    Style Switcher Problems

    I have been trying to make a style switcher; I think I have all the right code, but when the link to change the style is clicked, all it does is open the CSS file for that style! What am I doing wrong? Someone help me, please! :sad:
Back
Top Bottom